/*
 * @Author: jimma0312 jimma0312@outlook.com
 * @Date: 2023-07-14 22:17:48
 * @LastEditors: Ma YuChen
 * @LastEditTime: 2023-08-02 16:31:41
 * @FilePath: \video-repeater-ctl-mcu\LT86101UXE\lt_global.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "lt_global.h"

void vdInitialGlobal(LT_GLOBAL *_lt_GlobalStruct)
{
	int i = 0;
	if (_lt_GlobalStruct == 0)
	{
		return;
	}
	_lt_GlobalStruct->i2c_periph=255;
	_lt_GlobalStruct->g_ulCurrentTime = 0;
	_lt_GlobalStruct->bFlagHdmi20 = false;
	_lt_GlobalStruct->g_ucRxHdmi5vStatus = true;
	_lt_GlobalStruct->g_bFlagSystemStart = false;
	for (i = 0; i < 1; i++)
	{
		_lt_GlobalStruct->uOldTxPlugStatus[i] = 0;
	}
	for (i = 0; i < 2; i++)
	{
		_lt_GlobalStruct->data_received[i] = 0;
	}
	for (i = 0; i < 3; i++)
	{
		_lt_GlobalStruct->RX_OFFSET_VAL[i] = 0;
		_lt_GlobalStruct->g_Startstage_clr[i] = true;
		_lt_GlobalStruct->g_bFlagRxPllLock[i] = false;
		_lt_GlobalStruct->g_Systerm_start[0] = false;
	}
	_lt_GlobalStruct->g_ucTxPlugNumber = 0;
	_lt_GlobalStruct->data_num = 0;
	_lt_GlobalStruct->received = 0;
	_lt_GlobalStruct->FlagStartWork = false;
	_lt_GlobalStruct->g_bFlagHdmi20True = false;
	_lt_GlobalStruct->g_Flag_Init_Finished = false;
	_lt_GlobalStruct->Flag_ClkStable = false;
	_lt_GlobalStruct->Flag_HDMIVer_Changed = false;
}
